<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script src="./js/vue.js"></script>
<body>
    <div id="box">
        <input type="text" v-model="num">
        <h1>{{msg}}</h1>
        <h1 v-if='num == 1'>{{msga}}</h1>
        <h1 v-else-if="num == 2">{{msgb}}</h1>
        <h1 v-else-if="num == 3">{{msgc}}</h1>
        <h1 v-else-if="num == 4">{{msgd}}</h1>
        <h1 v-else="num == 5">{{msge}}</h1>
    </div>
    <script>
        let vm = new Vue({
            el:'#box',
            data:{
                msg:'今天星期几？？',
                num:5,
                msga:'星期一',
                msgb:'星期二',
                msgc:'星期三',
                msgd:'星期四',
                msge:'星期五'
            }
        })
    </script>
</body>
</html>